function http({url,offset,limit,success}){
  wx.request({
    url,
    data: {offset,limit},
    dataType: "json",
    header: {"content-type":"application"},
    method: "GET",
    responseType: "text",
    success: res => {
      success(res)
    },
  })
}

function handleNum(num){
  var arr = [];
  for(var i = 0 ;i < num / 5 ; i++){
    arr.push(i*5);
  }
  return arr;
}
module.exports = ({
  http,
  handleNum
})